package de.lns.entities.turrets;

import java.nio.FloatBuffer;

import de.lns.entities.mobs.Mob;
import de.lns.render.ModelFactory;

public class ExplosionShotTurret extends Turret {
	private static double radius = 23;
	private static String texturepath="entities/TurretFire.png";
	private static FloatBuffer mesh=ModelFactory.genRectMesh((float)radius*2, (float)radius*2);
	protected static int textureid;
	static{
		textureid = de.lns.render.TextureLoader.loadTexture(texturepath);
	}
	
	public ExplosionShotTurret(double posX, double posY) {
		
		super(posX, posY, 200, radius);
		setAttackspeed(0.3);
		setShotsPerAttack(1);
		setRangexy(250);
		setTexturepath(texturepath);
	}
	
	@Override
	public FloatBuffer getMesh(){
		return mesh;
	}
    public int getTextureID(){
    	return textureid;
    }

	@Override
	protected Bullet createShot(Mob mob) {
		Bullet bullet = new FireShot(posX,posY, mob);
		return bullet;
	}
}
